﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using NRCP.Helpers;

namespace NRCP.Controls
{
    public partial class wucStepsHelp : System.Web.UI.UserControl
    {
        public CompletedSteps HelpStep
        {
            get;
            set;
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                LoadHelp();
            }

        }

        private void LoadHelp()
        {
            if (HelpStep == CompletedSteps.Configure)
            {
                pnlConfig.Visible = true;
            }
            else if (HelpStep == CompletedSteps.YearlyPlan)
            {
                pnlYearly.Visible = true;
            }
            else if (HelpStep == CompletedSteps.MonthlyPlan)
            {
                pnlMonthly.Visible = true;
            }
        }
    }
}